<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: DBoW2::BowVector Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_d_bo_w2_1_1_bow_vector.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_d_bo_w2_1_1_bow_vector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">DBoW2::BowVector Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Vector of words to represent images.  
 <a href="class_d_bo_w2_1_1_bow_vector.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_bow_vector_8h_source.html">BowVector.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DBoW2::BowVector:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="class_d_bo_w2_1_1_bow_vector__inherit__graph.svg" width="222" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for DBoW2::BowVector:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="class_d_bo_w2_1_1_bow_vector__coll__graph.svg" width="222" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5ddf10e444d10425e5bd3568dc7ffe5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#a5ddf10e444d10425e5bd3568dc7ffe5e">addIfNotExist</a> (<a class="el" href="namespace_d_bo_w2.html#ab1a0d3283b2d4690a383372ed20bfeb5">WordId</a> id, <a class="el" href="namespace_d_bo_w2.html#a55fcd7333e591a38e96b91f41bc182f6">WordValue</a> v)</td></tr>
<tr class="memdesc:a5ddf10e444d10425e5bd3568dc7ffe5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a word with a value to the vector only if this does not exist yet.  <a href="#a5ddf10e444d10425e5bd3568dc7ffe5e">More...</a><br /></td></tr>
<tr class="separator:a5ddf10e444d10425e5bd3568dc7ffe5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ac92a805b252c93dc6535240d02df47"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#a3ac92a805b252c93dc6535240d02df47">addWeight</a> (<a class="el" href="namespace_d_bo_w2.html#ab1a0d3283b2d4690a383372ed20bfeb5">WordId</a> id, <a class="el" href="namespace_d_bo_w2.html#a55fcd7333e591a38e96b91f41bc182f6">WordValue</a> v)</td></tr>
<tr class="memdesc:a3ac92a805b252c93dc6535240d02df47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a value to a word value existing in the vector, or creates a new word with the given value.  <a href="#a3ac92a805b252c93dc6535240d02df47">More...</a><br /></td></tr>
<tr class="separator:a3ac92a805b252c93dc6535240d02df47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4da23e700adc4ee083d66b23ce86e90"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#ac4da23e700adc4ee083d66b23ce86e90">BowVector</a> (void)</td></tr>
<tr class="memdesc:ac4da23e700adc4ee083d66b23ce86e90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#ac4da23e700adc4ee083d66b23ce86e90">More...</a><br /></td></tr>
<tr class="separator:ac4da23e700adc4ee083d66b23ce86e90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd2dd34023e3053a4cc75d70c8b6ac13"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#acd2dd34023e3053a4cc75d70c8b6ac13">normalize</a> (<a class="el" href="namespace_d_bo_w2.html#a53e9e0bcfc25c861815e413a7cf3fa51">LNorm</a> norm_type)</td></tr>
<tr class="memdesc:acd2dd34023e3053a4cc75d70c8b6ac13"><td class="mdescLeft">&#160;</td><td class="mdescRight">L1-Normalizes the values in the vector.  <a href="#acd2dd34023e3053a4cc75d70c8b6ac13">More...</a><br /></td></tr>
<tr class="separator:acd2dd34023e3053a4cc75d70c8b6ac13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0611e948f987574161c121231341537b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#a0611e948f987574161c121231341537b">saveM</a> (const std::string &amp;filename, size_t W) const</td></tr>
<tr class="memdesc:a0611e948f987574161c121231341537b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the bow vector as a vector in a matlab file.  <a href="#a0611e948f987574161c121231341537b">More...</a><br /></td></tr>
<tr class="separator:a0611e948f987574161c121231341537b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7210cac6ce006c7232f4d097faa338d0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#a7210cac6ce006c7232f4d097faa338d0">~BowVector</a> (void)</td></tr>
<tr class="memdesc:a7210cac6ce006c7232f4d097faa338d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a7210cac6ce006c7232f4d097faa338d0">More...</a><br /></td></tr>
<tr class="separator:a7210cac6ce006c7232f4d097faa338d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a1a7d9ac0f9128538859adfea38453ae1"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html#a1a7d9ac0f9128538859adfea38453ae1">operator&lt;&lt;</a> (std::ostream &amp;out, const <a class="el" href="class_d_bo_w2_1_1_bow_vector.html">BowVector</a> &amp;v)</td></tr>
<tr class="memdesc:a1a7d9ac0f9128538859adfea38453ae1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints the content of the bow vector.  <a href="#a1a7d9ac0f9128538859adfea38453ae1">More...</a><br /></td></tr>
<tr class="separator:a1a7d9ac0f9128538859adfea38453ae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Vector of words to represent images. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac4da23e700adc4ee083d66b23ce86e90"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DBoW2::BowVector::BowVector </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<a id="a7210cac6ce006c7232f4d097faa338d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DBoW2::BowVector::~BowVector </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5ddf10e444d10425e5bd3568dc7ffe5e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DBoW2::BowVector::addIfNotExist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_d_bo_w2.html#ab1a0d3283b2d4690a383372ed20bfeb5">WordId</a>&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_d_bo_w2.html#a55fcd7333e591a38e96b91f41bc182f6">WordValue</a>&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a word with a value to the vector only if this does not exist yet. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>word id to look for </td></tr>
    <tr><td class="paramname">v</td><td>value to give to the word if this does not exist </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3ac92a805b252c93dc6535240d02df47"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DBoW2::BowVector::addWeight </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_d_bo_w2.html#ab1a0d3283b2d4690a383372ed20bfeb5">WordId</a>&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_d_bo_w2.html#a55fcd7333e591a38e96b91f41bc182f6">WordValue</a>&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a value to a word value existing in the vector, or creates a new word with the given value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>word id to look for </td></tr>
    <tr><td class="paramname">v</td><td>value to create the word with, or to add to existing word </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="acd2dd34023e3053a4cc75d70c8b6ac13"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DBoW2::BowVector::normalize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_d_bo_w2.html#a53e9e0bcfc25c861815e413a7cf3fa51">LNorm</a>&#160;</td>
          <td class="paramname"><em>norm_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>L1-Normalizes the values in the vector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">norm_type</td><td>norm used </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0611e948f987574161c121231341537b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DBoW2::BowVector::saveM </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>W</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Saves the bow vector as a vector in a matlab file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td></td></tr>
    <tr><td class="paramname">W</td><td>number of words in the vocabulary </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a1a7d9ac0f9128538859adfea38453ae1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_d_bo_w2_1_1_bow_vector.html">BowVector</a> &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints the content of the bow vector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>stream </td></tr>
    <tr><td class="paramname">v</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/alejandro/Desarrollo eclipse/os1/Thirdparty/DBoW2/DBoW2/<a class="el" href="_bow_vector_8h_source.html">BowVector.h</a></li>
<li>/home/alejandro/Desarrollo eclipse/os1/Thirdparty/DBoW2/DBoW2/<a class="el" href="_bow_vector_8cpp.html">BowVector.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_d_bo_w2.html">DBoW2</a></li><li class="navelem"><a class="el" href="class_d_bo_w2_1_1_bow_vector.html">BowVector</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
